package com.example.springboot_shopping.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.springboot_shopping.entity.User;
import java.util.List;

public interface UserService {
    List<User> findAll();
    User findById(Integer id);
    boolean register(User user);
    boolean update(User user);
    boolean deleteById(Integer id);
    User login(String username, String password);
    Page<User> findByPage(Integer pageNum, Integer pageSize);
}
